package itheima.d08;

public class Test {
    public static void main(String[] args) {
        Animal cat =new  Animal("黑马猫",12){
            @Override
            public void show() {
                System.out.println(getName()+"show");

            }

            @Override
            public void run() {
                System.out.println("run");
            }

        };
        Animal dog =new  Animal("黑狗",12){

            @Override
            public void show() {

            }

            @Override
            public void run() {

            }
        };
        Animal pig =new  Animal("黑猪",12){

            @Override
            public void show() {

            }

            @Override
            public void run() {

            }
        };



    }

}
